package com.portal.innovation.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysException extends RuntimeException{

    int code;
    String msg;

    public SysException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public SysException(String msg, int code) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }

    public SysException(String msg, Throwable e) {
        super(msg, e);
        this.msg = msg;
    }

}
